<template>
  <div id="newPay">
    <k-header headTitle="收银台" goBack="true" />
    <div :class="headIos?'side-fixd-ios':'side-fixed'" class="emds">
      <iframe
        :src="links"
        frameborder="0"
        width='100%'
        class="iframe"
        ></iframe>
    </div>
  </div>
</template>
<style scoped>
  #newPay {
    height: 100%;
  }
  .emds {
    height: 100%;
  }
  .iframe {
    height: 100%;
  }
  .side-fixd-ios {
    margin-top: 65px;
  }
</style>

<script>
import kHeader from '../common/head'
export default {
  name: 'newPay',
  components: {
    kHeader
  },
  data() {
    return {
      links: '',
      headIos: false
    }
  },
  methods: {
    drawIframe() {
      console.log(this.$route.query.donot);
     this.links = 'http://wx.innjia.com/h5v2/shouyintai/yuxiaoerpay/WEB-INF/views/default/checkstandIdcTest.html?outTradeNo=' + this.$route.query.donot + '&route=smartDirectPay77';
//        this.links = 'http://wx.innjia.com/h5v2/innjia/default/checkstand.html?outTradeNo=' + this.$route.query.donot + '&route=smartDirectPay77';
    }
  },
  created() {
    if (window.navigator.userAgent.indexOf('LBLSIOS') > -1) {
      this.headIos = true;
    }
    this.drawIframe();
  }
}
</script>


